#include<iostream>
using namespace std;
int main()
{
  int h,m,c,i;
  scanf("%d:%d",&h,&m);
  if((h==12&&m>0)||(h>12&&h<24))
  {
  	c=h-12;
  	if(m>0)
  	c+=1;
  	for(i=0;i<c;i++)
  	printf("Dang");
  }
  else if(h==24)
    h=0;
  else
    printf("Only %02d:%02d.  Too early to Dang.\n",h,m);
  return 0;
}
